package com.example.project02.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.project02.entity.User;
import org.apache.ibatis.annotations.*;

import java.util.List;


public interface UserMapper extends BaseMapper<User> {
//
//    @Select("SELECT * FROM sy_user")
//    List<User> findAll();
//
//    @Insert("insert into sy_user(username,password,nickname,email,phone,address)" +
//            " VALUES (#{username},#{password},#{nickname},#{email},#{phone},#{address})")
//    int insert(User user);
//
//
//    int update(User user);
//
//    @Delete("DELETE FROM sy_user WHERE id=#{id}")
//    Integer deleteById(@Param("id") Integer id);
//
//    @Select("SELECT * from sy_user where username like #{username} LIMIT #{pageNum},#{pageSize}")
//    List<User> selectPage(Integer pageNum, Integer pageSize,String username);
//
//    @Select("select count(*) from sy_user where username like concat('%',#{username},'%')")
//    Integer selectTotal(String username);

}
